﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Introducer_IntroducerList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TestDataBind();
    }

    private void TestDataBind()
    {
        List<int> list = new List<int>();
        for (int i = 0; i < 25; i++)
        {
            list.Add(i);
        }

        gv.DataSource = list;
        gv.DataBind();
        BindPager(pager);
        BindPager(pager2);
    }

    void DoDataBind()
    {
    }
    private void BindPager(Wuqi.Webdiyer.AspNetPager pg)
    {
        pg.RecordCount = 8000;
        pg.PageSize = 20;
    }
    protected void pager_PageChanged(object sender, EventArgs e)
    {
        pager2.CurrentPageIndex = pager.CurrentPageIndex;
        DoDataBind();
    }
    protected void pager2_PageChanged(object sender, EventArgs e)
    {
        pager.CurrentPageIndex = pager2.CurrentPageIndex;
        DoDataBind();
    }
}
